<?php

declare(strict_types=1);

namespace app\listener;

use think\swoole\Websocket;

class WsClose
{
    /**
     * 事件监听处理
     *
     * @return mixed
     */
    public function handle(Websocket $ws)
    {
        //
        echo '已经断开' . $ws->getSender();
    }
}
